#ifndef __DS18B20_H
#define __DS18B20_H

#include "main.h"
#include "delay.h"

typedef struct {
    GPIO_TypeDef* DQ_GPIO_Port;
    uint16_t DQ_Pin;
} DS18B20_HandleTypeDef;

uint8_t DS18B20_Init(DS18B20_HandleTypeDef* hds18b20);
short DS18B20_Get_Temperature(DS18B20_HandleTypeDef* hds18b20);

#endif